package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2022-12-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_manage_header_price_item")
public class ManageHeaderPriceItemDo extends Model<ManageHeaderPriceItemDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 头程报价 beginQuote| 头程账单 beginbill| 头程成本报价beginCost| 头程成本录入国内段beginBillCost | 
头程成本录入日本段 beginBillCostJp
     */
    @TableField("type")
    private String type;

    /**
     * project_id is null 说明 是自定义项目
     */
    @TableField("project_id")
    private Long projectId;

    /**
     * value和project_id 必存在一个
     */
    @TableField("value")
    private String value;

    /**
     * 父表id
     */
    @TableField("bill_id")
    private Long billId;

    /**
     * 单价
     */
    @TableField("price")
    private Double price;

    /**
     * 税费
     */
    @TableField("tax")
    private Double tax;

    /**
     * 币种
     */
    @TableField("currency_type")
    private Long currencyType;

    /**
     * 供货商id
     */
    @TableField("supplier_id")
    private Long supplierId;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private Long createBy;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
